// JavaScript Document
function get_random_color() 
{
    var color = "";
    for(var i = 0; i < 3; i++) {
        var sub = Math.floor(Math.random() * 256).toString(16);
        color += (sub.length == 1 ? "0" + sub : sub);
    }
    return "#" + color;
}


function Balloon(x,y){
	this.x = x;
	this.y = y;
	this.r = 5;
	this.color = get_random_color();
}

Balloon.prototype.PumpAirToBalloon = function(){
	if(this.r < 100){
		this.r += 1
	}
}